package com.shelpe.services.simbasync.service.simbaproxy;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="${simbaproxy.serviceID}", url="${simbaproxy.url}")
@RequestMapping(value = "/simba")
public interface CreativeProxy {
	
	/**
	 * 
	 * 获取创意列表取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意； 如果同时提供了推广组Id和创意id列表，则优先使用推广组Id；
	 * 
	 * @param nick 昵称
	 * @param sessionKey 会话id
	 * @param creativeIds 创意id列表
	 * @param adGroupId 组id
	 * 
	 * @return 创意列表
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.creatives.get")
	public String getCreativeList(@RequestParam("nick") String nick, @RequestParam("adgroup_id") long adGroupId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rtrpt.creative.get")
	public String getRptCreatives(@RequestParam("nick") String nick,@RequestParam("campaign_id") long campaignId, @RequestParam("adgroup_id") long adgroupId, @RequestParam("the_date") String theDate);
	
	/***
	 * 
	 * 创意效果报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.adgroupcreativeeffect.get")
	public String getRptCreativeEffect( @RequestParam("subway_token")String subway_token,  @RequestParam("nick")String nick,  @RequestParam("campaign_id")long campaignId, @RequestParam("adgroup_id") long adgroupId, 
			@RequestParam("source")String source,  @RequestParam("search_type")String searchType,  @RequestParam("start_time")String startTime,  @RequestParam("end_time") String endTime, 
			@RequestParam("page_size") int pageSize, @RequestParam("page_no") int pageNo);
	
	
	/***
	 * 
	 * 创意基础报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.adgroupcreativebase.get")
	public String getRptCreativeBase(@RequestParam("subway_token") String subwayToken,  @RequestParam("nick")String nick,  @RequestParam("campaign_id")long campaignId,  @RequestParam("adgroup_id")long adgroupId, 
			@RequestParam("source")String source,  @RequestParam("search_type")String searchType,  @RequestParam("start_time")String startTime,   @RequestParam("end_time")String endTime, 
			@RequestParam("page_size") int pageSize, @RequestParam("page_no") int pageNo);
	
	

}